import pytest

from config.config import *
from utils.database import Database


@pytest.fixture(scope="session", autouse=True)
def destroy_data():

    yield

    Database().execute_sql(SQL1,SQL2)

    # sqls = [SQL1, SQL2]
    #
    # conn = pymysql.Connect(
    #     host=DB_HOST,
    #     port=DB_PORT,
    #     database=DB_NAME,
    #     user=DB_USER,
    #     password=DB_PASSWORD,
    #     charset="utf8",
    #     autocommit=True
    # )
    # cur = conn.cursor()
    #
    # for sql in sqls:
    #     cur.execute(sql)
    #
    # cur.close()
    # conn.close()
